//
//  MyselfCollectionViewCell.m
//  Findif
//
//  Created by Mac on 2019/3/25.
//  Copyright © 2019年 Cicel Chen. All rights reserved.
//

#import "MyselfCollectionViewCell.h"

@implementation MyselfCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        //设置控件
        [self setupUI];
    }
    
    return self;
}


- (void)setupUI{
    
    self.backgroundColor = ColorWithRGB(0xEFF0F1);
    
    UIImageView * iconImageView = [UIImageView new];
    
    self.iconImageView = iconImageView;
    
    [self.contentView addSubview:self.iconImageView];
    
    
    UILabel * showLabel = [UILabel new];
    
    showLabel.textColor = ZRBlackColor;
    showLabel.textAlignment = NSTextAlignmentCenter;
    showLabel.font = [UIFont systemFontOfSize:13 * SCREENH6];
    showLabel.text = @"----";
    
    self.showLabel = showLabel;
    
    [self.contentView addSubview:self.showLabel];
}


- (void)layoutSubviews{
    
    [self.iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.height.mas_equalTo(25 * SCREENH6);
        make.top.mas_equalTo(self.contentView).offset(10 * SCREENH6);
        make.centerX.mas_equalTo(self.contentView);
    }];
    
    [self.showLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.iconImageView);
        make.top.mas_equalTo(self.iconImageView.mas_bottom).offset(5 * SCREENH6);
    }];
}

@end
